import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { ModalShareModule } from "../../modal/modal-share.module";
import { ModifyPageRoutingModule } from "./modify-page-routing.module";
import { ModifyPageComponent } from '../modify/modify-page/modify-page.component';
import { AppPaginationModule } from 'app/widgets/pagination/pagination.module';
import { MultiSelectModule } from 'primeng/components/multiselect/multiselect';
import { FlatpickrModule, FLATPICKR } from 'assets/angularx-flatpickr';
import * as flatpickr from 'flatpickr';
export function flatpickrFactory() {
  return flatpickr;
}
// import { EditComponent } from '../../modal/edit/edit.component';
import { DetailComponent } from '../../modal/detail/detail.component';
import { SubmitComponent } from '../../modal/submit/submit.component';
import { ModifyRemindPageComponent } from '../modify/modify-remind-page/modify-remind-page.component';

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    ModalShareModule,
    ModifyPageRoutingModule,
    AppPaginationModule,
    MultiSelectModule,
    FlatpickrModule.forRoot({
      provide: FLATPICKR,
      useFactory: flatpickrFactory
    })
  ],
  declarations: [
    ModifyPageComponent,
    DetailComponent,
    SubmitComponent,
    ModifyRemindPageComponent
  ],

  entryComponents: [
    DetailComponent,
    SubmitComponent,
    ModifyRemindPageComponent
  ]
})
export class ModifyPageModule { }